<!--Copyright (C) Kherty.  All rights reserved.-->
<UserControl
    x:Class="OpenLS.Spreadsheet.UI.LoginControl"
    xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
    xmlns:Resources="clr-namespace:OpenLS.Spreadsheet.UI.Internals.Resources"
    FocusManager.FocusedElement="{Binding ElementName=NameTextBox}"
    Width="320" Height="240"
    >
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ssui:DialogResources></ssui:DialogResources>

            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <!--Title="New Name"-->
    <Border BorderBrush="Black" BorderThickness="1" Background="Beige" CornerRadius="18">
    <Grid>
    <Grid.Resources>
      <Style TargetType="{x:Type TextBox}">
        <Setter Property="Margin" Value="4"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
      </Style>
      <Style TargetType="{x:Type TextBlock}">
        <Setter Property="Height" Value="24"/>
      </Style>
    </Grid.Resources>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition  Height="Auto"/>
            <RowDefinition  Height="Auto"/>
            <RowDefinition Height="*"/>
      <RowDefinition  Height="Auto"/>
      <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto"/>
      <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
    <Label  Margin="3" Content="{x:Static Resources:UIStringTable.User}"></Label>
    <TextBox Name="UserTextBox" Text="{Binding User}" Grid.Column="1" TabIndex="0"/>
    <Label  Grid.Row="2" Content="{x:Static Resources:UIStringTable.Password}"></Label>
        <PasswordBox Name="PasswordTextBox"  Grid.Row="2" TabIndex="1" Grid.Column="1"/>
        <StackPanel Grid.Row="3" Grid.Column ="0" Grid.ColumnSpan="2" HorizontalAlignment="Right" Orientation="Horizontal">
            <CheckBox Name="IsPasswordForgotten"/>
            <Label  Margin="3" Content="{x:Static Resources:UIStringTable.ForgotPassword}"></Label>
         </StackPanel>
            <StackPanel Grid.Row="4" Grid.Column ="1"  HorizontalAlignment="Right" Orientation="Horizontal">
            <Button IsDefault ="True"></Button>
            <Button IsCancel ="True"></Button>
        </StackPanel>
    </Grid>
    </Border>
</UserControl>
